<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>cell</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 29/05/2006</div>
    <p>
      <b>cell</b> -  create an empty cell</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>c=cell(m1,m2,...)</tt>
      </dd>
      <dd>
        <tt>c=cell(x)</tt>
      </dd>
      <dd>
        <tt>c=cell()</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x</b>
        </tt>: integers vector</li>
      <li>
        <tt>
          <b>m1, m2,..</b>
        </tt>: integers</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>Returns an empty cell.</p>
    <dl>
      <dd>
        <b>cell(m1)</b> returns an empty <tt>
          <b>(m1,m1)</b>
        </tt> cell</dd>
      <dd>
        <b>cell(m1,m2)</b> returns an empty <tt>
          <b>(m1,m2) </b>
        </tt>cell</dd>
      <dd>
        <b>cell(m1,m2,..,mn)</b> : creates an empty <tt>
          <b>(m1,m2,..,mn)</b>
        </tt> cell.</dd>
      <dd>
        <b>cell(x)</b> returns an empty cell array with : the first dimension of the
        cell array is <tt>
          <b>x(1)</b>
        </tt>, the second dimension is <tt>
          <b>x(2),
        ...</b>
        </tt>
      </dd>
    </dl>
    <p>Note that <tt>
        <b>cell(x) </b>
      </tt>is not the same size that
    <tt>
        <b>x</b>
      </tt>
    </p>
    <p>
      <tt>
        <b>cell()</b>
      </tt> is eqivalent to <tt>
        <b>cell(0)</b>
      </tt>
    </p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

a=cell(3)
b=cell(3,1)
c=cell([2,3,4])

// assigning cell entries
b=cell(3,1);
// assigning a single entry
b(1).entries=1:3
b(2).entries='Scilab'
b(3).entries=poly(1:3,'s')

// assigning sub-cells
X=cell(3,2);
X(:,1)=b

//sub-cell reference
b(1) // result is a cell
b(1:2) 

b(1).entries //result is an array


  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../elementary/eye.htm">
        <tt>
          <b>eye</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../elementary/ones.htm">
        <tt>
          <b>ones</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../elementary/zeros.htm">
        <tt>
          <b>zeros</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
